package com.huiqiao.lesson6.beanLifeCallback;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanCallBackConfig {

    @Bean(initMethod = "init2", destroyMethod = "destroy2")
    public UserBean userBean() {
        return new UserBean();
    }
}
